<form class="form-inline" method="get">
    <div class="form-group col-xs-1">
        <div class="col-xs-12">
            <input class="form-control" type="text" name="username" value="{$username}"
                   placeholder="用户名">
        </div>
    </div>
    <div class="form-group col-xs-2">
        <div class="col-xs-12">
            <input class="form-control" type="number" name="selfphone" value="{$selfphone}"
                   placeholder="手机号">
        </div>
    </div>
    <div class="form-group col-xs-2">
        <div class="col-xs-12">
            <input class="form-control" name="realname" value="{$realname}"
                   placeholder="真实姓名">
        </div>
    </div>
    <div class="form-group col-xs-1">
        <div class="col-xs-12">
            <select class="form-control" name="is_active" id="is_active">
                <option value=''   {if $is_active eq ''}selected{/if} >全部</option>
                <option value='-1'  {if $is_active eq '-1'}selected{/if}>不能登录</option>
                <option value='1' {if $is_active eq '1'}selected{/if}>可以登陆</option>
            </select>
        </div>
    </div>
    <div class="form-group col-xs-2">
        <div class="col-xs-12">
            <button type="submit" class="btn btn-success">
                确认搜索
            </button>
        </div>
    </div>
</form>

<hr>
<table class="table table-striped">
    <thead>
    <tr>
        <td>编号</td>
        <td>用户名</td>
        <td>真实姓名</td>
        <td>手机</td>
        <th>SCB数量</th>
        <th>合约收益</th>
        <th>共享豆</th>
        <th>团队奖</th>
        <th>推广收益</th>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    {volist name="list.data" id="item"}
    <tr>
        <td>{$item.id}</td>
        <td>
            <p>{$item.username}</p>
        </td>
        <td>{$item.realname}</td>
        <td>
			<p>{$item.selfphone}</p>
			<p>紧急:{$item.mustman}</p>
		</td>
        <td>
            <p>{$item.mybot}</p>
            <a style="color:#27BCAF;" href="{:url('mybot',array('realname'=>$item['username']))}">历史</a>
        </td>
        <td>
            <p>{$item.myprofit}</p>
            <a style="color:#27BCAF;" href="{:url('earnings',array('realname'=>$item['username']))}">历史</a>
        </td>

        <td>
            <p>{$item.integral}</p>
            <a style="color:#27BCAF;" href="{:url('scorelist',array('realname'=>$item['username']))}">历史</a>
        </td>
        <td>
            <p>{$item.wagesall}</p>
            <a style="color:#27BCAF;" href="{:url('atclist',array('realname'=>$item['username']))}">历史</a>
        </td>
        <td>
            <p>{$item.pushs}</p>
            <a style="color:#27BCAF;" href="{:url('spreadearnings',array('realname'=>$item['username']))}">历史</a>
        </td>
        <td>
            <div class="btn-group">
                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    操作
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu">
                    <li>
                        <a href="javascript:void(0)" onclick="modal('{:url(\'edit_money\',array(\'id\'=>$item[\'id\']))}', '编辑钱包')">
                            编辑
                        </a>
                    </li>
                    <li>
                        <a href="{:url('loginadmin',array('id'=>$item['id']))}" target="_blank">
                            登入
                        </a>
                    </li>
                    <li role="separator" class="divider"></li>
                </ul>
            </div>
        </td>
    </tr>
    {/volist}
    </tbody>
</table>

<div class="row">
    <div class="col-xs-12" style="text-align: right;">
        {$page}
    </div>
</div>
<script src="__PUBLIC__/vendors/select2/js/select2.min.js"></script>
<script type="application/javascript">
    $(function () {
        $("#is_active").select2({
            placeholder: "激活状态",
            allowClear: true
        });
    });
</script>
